package com.example.micrapi.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @TableName sys_user
 */
@Data
public class SysUser implements Serializable {
    private Integer userId;
    private Integer shopId;
    private String username;
    private String nickname;
    private String password;
    private String sex;
    private String phone;
    private String address;
    private Date createTime;
    private Date lastTime;
    private Integer enabled;
    private Integer accountNoExpired;
    private Integer credentialsNoExpired;
    private Integer accountNoLocked;

    private static final long serialVersionUID = 1L;

    // 角色信息
    private List<SysRole> roleList = new ArrayList<>();

    // 权限信息
    private List<String> codeList = new ArrayList<>();
}